package com.tbs.parkingsaleapp.UI.Adapters.Sorters;

import com.tbs.parkingsaleapp.DataTool.Cal;
import com.tbs.parkingsaleapp.Http.JsonData.ParkResult;

import java.util.Comparator;

public class Rcm_DistanceSorter implements Comparator<ParkResult> {
@Override
public int compare(ParkResult o1, ParkResult o2) {
        return o2.Recommond().raw[Cal.rcm_DISTANCE]- o1.Recommond().raw[Cal.rcm_DISTANCE]>=0?1:-1;
        }
        }
